package br.com.pd.messaging;

import java.util.List;

import br.com.util.PropertiesLoader;



public class SupplyMessage extends AbstractMessage{

	private static final long serialVersionUID = 8164197199394401313L;
	private List<Object> params; 
	private Object response;
	
	
	public SupplyMessage(String operation, List<Object> params) {
		super.operation = operation;
		this.params= params;
		this.portSender = Integer.parseInt(PropertiesLoader.getInstance().getPropertie(PropertiesLoader.PORT_MANAGER_RECEIVER));
	}
	
	public SupplyMessage(){
		
	}

	@Override
	public Object getResponse() {
		return this.response;
	}

	@Override
	public List<Object> getParams() {
		return this.params;
	}

	@Override
	public void addResponse(Object o) {
		this.response = o;
	}

}
